#ifndef ALP_STRING_H
#define ALP_STRING_H

/**
 * @file  alp_string.h
 * @brief String Utilities
 */

#include "alp_type.h"


/**
 * Convert a string to a size_t.
 * @param size the result value
 * @param s    the string to be converted
 * @param len  the length of the string
 * @return 0 for OK
 */
alp_status_t alp_strntoz(size_t *size, const char *s, size_t len);

/**
 * Duplicate a block of memroy.
 * @param p    the memory to be duplicated
 * @param size the size of block
 * @param pool the pool to allocate a block out of
 * @return the duplicated block
 */
void * alp_memdup(const void *p, size_t size);
#endif
